import React from "react";
import { Link, Routes, Route, Outlet } from "react-router-dom";

// 改变url但内容不变
export default function App() {
  return (
    <div>
      <h2>hello router</h2>
      <nav>
        <Link to="/about">About</Link>&nbsp;|&nbsp;
        <Link to="/home">home</Link>
      </nav>
      <Outlet />
    </div>
  );
}
